package com.gimi.cloud.jimi.app.consumer.feign;

import com.gimi.cloud.jimi.app.consumer.feign.hystrix.HomePageHystrix;
import com.gimi.cloud.jimi.dto.app.ColumnProdDTO;
import com.gimi.cloud.jimi.dto.base.BaseDTO;
import com.gimi.cloud.jimi.dto.user.UserDTO;

import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by shazhiwei on 2017/12/27.
 */
@FeignClient(name = "jimi-app-service", fallback = HomePageHystrix.class)
public interface HomePageFeignService {

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/columnList", method = RequestMethod.POST)
    String columnList(@RequestBody BaseDTO param);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/majorAdList", method = RequestMethod.POST)
    String adList(@RequestBody BaseDTO param);
    
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/columnProdList", method = RequestMethod.POST)
    String columnProdList(@RequestBody ColumnProdDTO dto);
    
    //*************app首页认证步骤
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/getAuthenticationStatus", method = RequestMethod.POST)
    String getAuthenticationStatus(@RequestBody UserDTO dto);
    
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/getAuthenticationInfo", method = RequestMethod.POST)
    String getAuthenticationInfo(@RequestBody UserDTO dto);
    
    
}
